
package puziran.party.dao.impl;

import java.util.Map;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import puziran.party.dao.PartyDao;
import puziran.party.domain.Party;

public class PartyDaoImpl extends SqlMapClientDaoSupport implements PartyDao{
	
	@Override
	public String insert(Party party) throws Exception{
		return (String) getSqlMapClientTemplate().insert("iBatisInsertParty",party);
	}
	
	@Override
	public Party selectPartyByKeywords(Map<String, String> map){
		return (Party) this.getSqlMapClientTemplate().queryForObject("iBatisSelectPartyByKeywords", map);
	}
}

